package com.major.staticproxy;

public class MarryCompany implements Marry{

    private Man man;

    public MarryCompany(Man man) {
        this.man = man;
    }

    @Override
    public void marry() {
        before();
        man.marry();
        after();
    }

    private void after() {
        System.out.println("结婚后：收尾款");
    }

    private void before() {
        System.out.println("结婚前：布置现场");
    }
}
